//
//  UIDefine.h
//  FrameWork
//
//  Created by waver on 10-8-4.
//  Copyright 2010 __JOYMASTER__. All rights reserved.
//

#import <Foundation/Foundation.h>

#define __CLOSESOUND

enum {
	Right_Direction = 1,
	Up_Direction = 2,
	Down_Direction = 3,
	Left_Direction = 4,
};


enum  {//小兵动画
	BUBINGPAODONG = 1,
	BUBINGSIWANG =2,
	MENGSIWANG = 3,
	MENGZOUDONG = 4,
	QINGPAODONG = 5,
	QINGSIWANG=6,
	TENGPAODONG=7,
	TENGSIWANG = 8,
	TIESIWANG=9,
	TIEYIDONG = 10,
	XIANGSIWANG=11,
	XIANGZOUDONG=12,
	ZHANPAODONG = 13,
	ZHANSIWANG=14,
	ZHONGPAODONG = 15,
	ZHONGSIWANG = 16
};


enum  {
	GUAN_WAIT_LEFT = 1,
	GUAN_WAIT_RIGHT,
	GUAN_WAIT_UP,
	GUAN_WAIT_DOWN,
	GUAN_PAO_LEFT,
	GUAN_PAO_RIGHT,
	GUAN_PAO_UP,
	GUAN_PAO_DOWN,
	GUAN_HIT_LEFT,
	GUAN_HIT_RIGHT,
	GUAN_HIT_UP,
	GUAN_HIT_DOWN,
	GUAN_SHIFA_LEFT,
	GUAN_SHIFA_RIGHT,
	GUAN_SHIFA_UP,
	GUAN_SHIFA_DOWN,
	GUAN_HUOQIANG_LEFT,
	GUAN_HUOQIANG_RIGHT,
	GUAN_HUOQIANG_UP,
	GUAN_HUOQIANG_DOWN
};

//关羽动画
enum  
{
	GUANYUWAIT = 17,
	GUANYUPAO = 18,
	GUANYUHIT = 19,
	GUANYUSHIFA = 20,
	GUANYUBAGUAONE = 21,
	GUANYUBAGUATWO = 22,
	GUANYUHUOQIANG = 23,
	GUANYULEIJIONE = 24,
	GUANYULEIJITWO = 25,
	GUANYUPENHUO = 26,
	GUANYUTOUQUONE = 27,
	GUANYUTOUQUTWO =28, 
 };

enum 
{
	ENABLE_POINT = 29,
	DISABLE_POINT = 30,
	WARRIR_UP = 31,
	TOUSHI_HIT = 32,
};

enum  {
	NormalStatus = 0,//正常
	CatchEnd = 1,//到达终点
	SlowDown = 2,//减速
	DeadBody = 3,//死亡
	RotBody = 4,//尸体腐烂
};

enum  {
	NormalWeapon = 0,
	Poison = 1,
	Puncture = 2,
	Mangonel = 3,
	PowerUpTower= 4,
	
};



enum MusicID 
{
	S_GOUND = 0,
	S_BUBING,
	S_TENGJIA,
	S_QIBING,
	S_ZHONGQIBING,
	S_XIANGBING,
	S_ZHANCHE,
	S_TIEJIA,
	S_MENGHUO,
	S_LEIJI,
	S_BAGUA,
	S_MAX,
	
};

enum ETouchState 
{
	TOUCH_DEFAULT = 0,
	TOUCH_ENEMY_SELECT,
	TOUCH_TOWER_SELECT,
	TOUCH_PUT_TOWER,
	TOUCH_PUT_SKILL,
	TOUCH_MAP_SELECT,
	TOUCH_MAP_SCALE,
	TOUCH_MAP_MOVE
};


enum EItemLayer {
	LAYER_ITEM_ONGROUND = 0,
	LAYER_ITEM_BAGUA,
	LAYER_ITEM_APERTURE,
	LAYER_ITEM_ENEMY,
	
	LAYER_ITEM_WARRIOR,
	LAYER_ITEM_TOWER,
	LAYER_ITEM_FASHU,
	LAYER_ITEM_BULLET = 61,
	LAYER_ITEM_SKILL,
	LAYER_ITEM_CONTROL_ICON
	
	
};


enum EnemyInfo 
{
	kHpLabel = 0,
	kStatus,
	
};

enum//关羽的攻击方式
{
	Normal_Attack = 0,
	Shifa_Attack = 1,
	Fire_Attack = 2,
};


enum TowerUpChai 
{
	kChaiMoney = 0,
	kUpMoney
};

enum WarriorInfo {
	kWarriorLevel = 0,
	kWarriorState
};


enum TouchState
{
	NORMAL = 0,
	PUT_TOWER,
	
	TOWER_SELECTED,
	
	
};

#pragma mark Exception
@interface MyExcetion : NSObject
{
	
}

+(void)ThorwException:(NSString*)Name resultStr:(NSString*)_result;

@end

